package basic;

public class ImoocStudent {
    String nickname = "小明";
    String position = "工程师";
    String city = "上海";
    String sex = "male";

    // 无参构造方法
    // 使用 new 关键字调用构造方法：
    public void StudyCourse() {
        System.out.println("学习课程");
    }

    public void PostComment() {
        System.out.println("发表评论");
    }

    public void PostArtion() {
        System.out.println("发表手记");
    }


    public static void main(String[] args) {
        ImoocStudent imoocStudent = new ImoocStudent();
        System.out.println("昵称：" + imoocStudent.nickname);
        System.out.println("职位：" + imoocStudent.position);
        System.out.println("城市：" + imoocStudent.city);
        System.out.println("性别：" + imoocStudent.sex);
        imoocStudent.StudyCourse();
        imoocStudent.PostComment();
        imoocStudent.PostArtion();

    }
}


